package com.ruoyi.project.good.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 订单明细对象 order_info
 * 
 * @author ruoyi
 * @date 2020-07-01
 */
public class OrderInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单明细表ID */
    private Long orderInfoId;

    /** 订单ID */
    @Excel(name = "订单ID")
    private Long ordersId;

    /** 订单状态（1待付款，2待发货，3待收货，4已完成，5交易取消，6退款成功） */
    @Excel(name = "订单状态", readConverterExp = "1=待付款，2待发货，3待收货，4已完成，5交易取消，6退款成功")
    private Long orderState;

    /** 用户ID（用户进入企业商城前选择进入的用户ID） */
    @Excel(name = "用户ID", readConverterExp = "用=户进入企业商城前选择进入的用户ID")
    private Long userId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long goodsId;

    /** 商品规格ID */
    @Excel(name = "商品规格ID")
    private Long specId;

    /** 订单数 */
    @Excel(name = "订单数")
    private Long num;

    /** 单价 */
    @Excel(name = "单价")
    private Long price;

    /** 订单价格 */
    @Excel(name = "订单价格")
    private Long allPrice;

    /** 1删除 */
    @Excel(name = "1删除")
    private Integer isDel;

    /** 商品转发记录 */
    @Excel(name = "商品转发记录")
    private Long forwardId;

    /** 转发等级(佣金提成等级） */
    @Excel(name = "转发等级(佣金提成等级）")
    private Integer level;

    /** 秒杀ID */
    @Excel(name = "秒杀ID")
    private Long killId;

    public void setOrderInfoId(Long orderInfoId) 
    {
        this.orderInfoId = orderInfoId;
    }

    public Long getOrderInfoId() 
    {
        return orderInfoId;
    }
    public void setOrdersId(Long ordersId) 
    {
        this.ordersId = ordersId;
    }

    public Long getOrdersId() 
    {
        return ordersId;
    }
    public void setOrderState(Long orderState) 
    {
        this.orderState = orderState;
    }

    public Long getOrderState() 
    {
        return orderState;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setGoodsId(Long goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }
    public void setSpecId(Long specId) 
    {
        this.specId = specId;
    }

    public Long getSpecId() 
    {
        return specId;
    }
    public void setNum(Long num) 
    {
        this.num = num;
    }

    public Long getNum() 
    {
        return num;
    }
    public void setPrice(Long price) 
    {
        this.price = price;
    }

    public Long getPrice() 
    {
        return price;
    }
    public void setAllPrice(Long allPrice) 
    {
        this.allPrice = allPrice;
    }

    public Long getAllPrice() 
    {
        return allPrice;
    }
    public void setIsDel(Integer isDel) 
    {
        this.isDel = isDel;
    }

    public Integer getIsDel() 
    {
        return isDel;
    }
    public void setForwardId(Long forwardId) 
    {
        this.forwardId = forwardId;
    }

    public Long getForwardId() 
    {
        return forwardId;
    }
    public void setLevel(Integer level) 
    {
        this.level = level;
    }

    public Integer getLevel() 
    {
        return level;
    }
    public void setKillId(Long killId) 
    {
        this.killId = killId;
    }

    public Long getKillId() 
    {
        return killId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderInfoId", getOrderInfoId())
            .append("ordersId", getOrdersId())
            .append("orderState", getOrderState())
            .append("userId", getUserId())
            .append("goodsId", getGoodsId())
            .append("specId", getSpecId())
            .append("num", getNum())
            .append("price", getPrice())
            .append("allPrice", getAllPrice())
            .append("createTime", getCreateTime())
            .append("remark", getRemark())
            .append("isDel", getIsDel())
            .append("forwardId", getForwardId())
            .append("level", getLevel())
            .append("killId", getKillId())
            .toString();
    }
}
